using System;
using System.Windows.Forms;

using FreeFlow.Administration;

namespace FreeFlowAdministrator
{
	/// <summary>
	/// Summary description for ReportAdaptor.
	/// </summary>
	public class ReportAdaptor : Adaptor
	{
    private Report report; 
		public ReportAdaptor(Report report)
		{
      this.report = report;
		}

    public override string Text
    {
      get
      {
        return report.Name;
      }
    }

    public override Control GetRenderer()
    {
      ReportControl control = new ReportControl();
      control.LoadReport(report);
      return control;
    }

    public override int ImageIndex
    {
      get
      {
        return 27;
      }
    }

    public override object Object
    {
      get
      {
        return report;
      }
    }
	}
}
